import axios from 'axios'
import { API_BASE_URL } from '../config/api'

// 删除操作日志接口
export function deleteOperationLog(logId) {
  const formData = new URLSearchParams()
  formData.append('logId', logId)
  return axios.post(`${API_BASE_URL}/actions/operationLog/delete`, formData, {
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  })
}

// 获取操作日志列表接口
export function getOperationLogList(params) {
  return axios.get(`${API_BASE_URL}/actions/operationLog/list`, {
    params: params
  })
}